<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateIndustryTable extends Migration
{
    /**
     * Run the migrations.
     *industry_id  行业id
     * name 行业名称
     * img 图片
     * is_hot 是否是热门(1是2否)
     * order 排序
     * @return void
     */
    public function up()
    {
        Schema::create('industry', function (Blueprint $table) {
            $table->engine='InnoDB';
            $table->increments('industry_id');
            $table->string('name',50);
            $table->string('img',100);
            $table->tinyInteger('is_hot');
            $table->integer('order');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('industry');
    }
}
